#include "StdAfx.h"
#include "SRModel.h"

using namespace sora;
using std::vector;

TEST(Box, plus)
{
	Box b1(1, -1, -1, 1, 1, -1);
	Box b2(0.5, -2, 0, 2, 2, 0);
	Box b3 = b1 + b2;
	EXPECT_EQ(1, b3.top());
	EXPECT_EQ(-2, b3.bottom());
	EXPECT_EQ(-1, b3.left());
	EXPECT_EQ(2, b3.right());
	EXPECT_EQ(2, b3.front());
	EXPECT_EQ(-1, b3.back());
}
